home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 August: Tool Chest / Dev.CD Aug 94.toast / New System Software Extensions / QuickDraw GX Info / QuickDraw GX Interfaces / Interfaces & Libraries / Pascal Interfaces & Libraries / Pascal Interfaces / PrintingErrors.p < prev    next >
Encoding:
Text File  |  1994-03-24  |  5.1 KB  |  114 lines  |  [TEXT/MPS ]

  1. {
  2.     FILENAME
  3.         PrintingErrors.p
  4.  
  5.     DESCRIPTION
  6.         This file defines all the public result codes for the Printing Manager.
  7.  
  8.     COPYRIGHT
  9.         Copyright © Apple Computer, Inc. 1989, 1990, 1991, 1992, 1993
  10.         All rights reserved. 
  11.     
  12. }
  13. {$IFC UNDEFINED UsingIncludes}
  14. {$SETC UsingIncludes := 0}
  15. {$ENDC}
  16.  
  17. {$IFC NOT UsingIncludes}
  18.     UNIT PrintingErrors;
  19.     INTERFACE
  20. {$ENDC}
  21.  
  22. {$IFC UNDEFINED UsingPrintingErrors}
  23. {$SETC UsingPrintingErrors := 1}
  24.  
  25. {$I+}
  26. {$SETC PrintingErrorsIncludes := UsingIncludes}
  27. {$SETC UsingIncludes := 1}
  28. {$IFC UNDEFINED UsingTypes}
  29. {$I $$Shell(PInterfaces)Types.p}
  30. {$ENDC}
  31. {$SETC UsingIncludes := PrintingErrorsIncludes}
  32.  
  33. { Constants }
  34.  
  35. CONST
  36.  
  37.     gxPrintingResultBase    = -510;
  38.  
  39.     gxAioTimeout             = gxPrintingResultBase;            { -510 : Timeout condition occurred during op. }
  40.     gxAioBadRqstState         = (gxPrintingResultBase - 1);        { -511 : Async I/O request in invalid state for op. }
  41.     gxAioBadConn             = (gxPrintingResultBase - 2);        { -512 : Invalid aio connection refnum }
  42.     gxAioInvalidXfer         = (gxPrintingResultBase - 3);        { -513 : Read DataXferStruc contained bad values }
  43.     gxAioNoRqstBlks             = (gxPrintingResultBase - 4);        { -514 : No available request blocks to process request }
  44.     gxAioNoDataXfer             = (gxPrintingResultBase - 5);        { -515 : DataXferStruc pointer not specified }
  45.     gxAioTooManyAutos         = (gxPrintingResultBase - 6);        { -516 : Auto status request already active }
  46.     gxAioNoAutoStat             = (gxPrintingResultBase - 7);        { -517 : Connection not configured for auto status }
  47.     gxAioBadRqstID             = (gxPrintingResultBase - 8);        { -518 : Invalid I/O request identifier }
  48.     gxAioCantKill             = (gxPrintingResultBase - 9);        { -519 : Comm. protocol doesn't support I/O term. }
  49.     gxAioAlreadyExists         = (gxPrintingResultBase - 10);        { -520 : Protocol spec. data already specified }
  50.     gxAioCantFind             = (gxPrintingResultBase - 11);        { -521 : Protocol spec. data does not exist }
  51.     gxAioDeviceDisconn         = (gxPrintingResultBase - 12);        { -522 : Machine disconnected from printer }
  52.     gxAioNotImplemented         = (gxPrintingResultBase - 13);        { -523 : Function not implemented }
  53.     gxAioOpenPending         = (gxPrintingResultBase - 14);        { -524 : Opening a connection for protocol; but another open pending }
  54.     gxAioNoProtocolData          = (gxPrintingResultBase - 15);        { -525 : No protocol specific data specified in request }
  55.     gxAioRqstKilled              = (gxPrintingResultBase - 16);        { -526 : I/O request was terminated }
  56.     gxBadBaudRate             = (gxPrintingResultBase - 17);        { -527 : Invalid baud rate specified }
  57.     gxBadParity                 = (gxPrintingResultBase - 18),        { -528 : Invalid parity specified }
  58.     gxBadStopBits             = (gxPrintingResultBase - 19);        { -529 : Invalid stop bits specified }
  59.     gxBadDataBits             = (gxPrintingResultBase - 20);        { -530 : Invalid data bits specified }
  60.     gxBadPrinterName         = (gxPrintingResultBase - 21),        { -531 : Bad printer name specified }
  61.     gxAioBadMsgType             = (gxPrintingResultBase - 22);        { -532 : Bad masType field in xferInfo struc }
  62.     gxAioCantFindDevice         = (gxPrintingResultBase - 23),        { -533 : Cannot locate target device }
  63.     gxAioOutOfSeq             = (gxPrintingResultBase - 24);        { -534 : Non-atomic SCSI requests submitted out of sequence }
  64.  
  65.     gxPrIOAbortErr             = (gxPrintingResultBase - 25);        { -535 }
  66.     gxPrUserAbortErr         = (gxPrintingResultBase - 26);        { -536 }
  67.     
  68. {  RESULT CODES FOR THE DIALOGS }
  69.  
  70.     gxCantAddPanelsNowErr         = (gxPrintingResultBase - 27);    { -537 : panels can only be added during driver switch or before dialog is initiated }
  71.     gxBadxdtlKeyErr                  = (gxPrintingResultBase - 28);    { -538 : unknown key for xdtl - must be radiobutton; etc }
  72.     gxXdtlItemOutOfRangeErr          = (gxPrintingResultBase - 29);    { -539 : referenced item does not belong to panel }
  73.     gxNoCoolActionButtonErr      = (gxPrintingResultBase - 30);    { -540 : action button is nil }
  74.     gxCoolTitlesTooLongErr         = (gxPrintingResultBase - 31);    { -541 : length of buttons exceeds alert maximum width }
  75.     gxUnknownCoolVersionErr      = (gxPrintingResultBase - 32);    { -542 : bad version for cool alerts }
  76.  
  77.  
  78. { RESULT CODES FOR BUFFERING }
  79.  
  80.     gxGBBufferTooSmallErr        = (gxPrintingResultBase - 33);    { -543 }
  81.  
  82.  
  83. { RESULT CODES FOR VECTOR IMAGING }
  84.  
  85.     gxInvalidPenTable            = (gxPrintingResultBase - 34);    { -544 }
  86.  
  87.  
  88. { RESULT CODES FOR PRINT FILES }
  89.  
  90.     gxIncompletePrintFileErr     = (gxPrintingResultBase - 35);    { -545 }
  91.     gxCrashedPrintFileErr         = (gxPrintingResultBase - 36);    { -546 }
  92.     gxInvalidPrintFileVersion     = (gxPrintingResultBase - 37);    { -547 }
  93.  
  94.  
  95. { MISCELLANEOUS RESULT CODES FROM THE API }
  96.  
  97.     gxSegmentLoadFailedErr        = (gxPrintingResultBase - 38);    { -548 : keep in sync with Dispatcher.a in the core }
  98.     gxExtensionNotFoundErr        = (gxPrintingResultBase - 39);    { -549 }
  99.     gxDriverVersionErr            = (gxPrintingResultBase - 40);    { -550 }
  100.     gxImagingSystemVersionErr    = (gxPrintingResultBase - 41);    { -551 }
  101.     gxFlattenVersionTooNew      = (gxPrintingResultBase - 42);    { -552 }
  102.     gxPaperTypeNotFound         = (gxPrintingResultBase - 43);    { -553 }
  103.     gxNoSuchPTGroup                = (gxPrintingResultBase - 44);    { -554 }
  104.     
  105. { OTHER ERRORS }
  106.  
  107.     gxNotEnoughPrinterMemory    = (gxPrintingResultBase - 45);    { -555 }
  108.  
  109. {$ENDC}    { UsingPrintingErrors }
  110.  
  111. {$IFC NOT UsingIncludes}
  112.     END.
  113. {$ENDC}
  114.